package com.example.operation.controller;

import com.example.operation.domin.Admin;
import com.example.operation.dto.AdminDto;
import com.example.operation.dto.DispatchCityDto;
import com.example.operation.service.DispatchCityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: DispatchCityController
 * @Description:
 * @Author
 * @Date 2021/11/24
 * @Version 1.0
 */

/*
@Api(tags = "同城配送模块")
@RestController
@RequestMapping("/dispatchCity")
public class DispatchCityController {


    @Autowired
    private DispatchCityService dispatchCityService;


    @ApiOperation(value = "配送方式配送到修改接口")
    @PutMapping("/update")
    public Integer update(@RequestBody DispatchCityDto dispatchCityDto){
        return dispatchCityService.update(dispatchCityDto);
    }


    @ApiOperation(value = "配送方式根据id删除接口")
    @DeleteMapping ("/delectById")
    public int delectById(@RequestParam("id") Integer id){
        return dispatchCityService.delectDyId(id);
    }


}
*/
